From: Matthias Clasen Date: Mon, 1 May 2023 17:58:00 +0000 (-0400) Subject: Improve test coverage X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~59^2^2~323^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=33ab588d4e2f74d67e118cdd7d81d4d009fe6828;p=gtk4.git Improve test coverage Check that our two rounded rect intersection functions agree. --- diff --git a/testsuite/gsk/rounded-rect.c b/testsuite/gsk/rounded-rect.c index 3112ec26e3..6ea7e7475b 100644 --- a/testsuite/gsk/rounded-rect.c +++ b/testsuite/gsk/rounded-rect.c @@ -229,6 +229,8 @@ test_intersect_with_rect (void) } g_assert_true (gsk_rounded_rect_equal (&out, &test[i].expected)); } + + g_assert_true ((res != GSK_INTERSECTION_EMPTY) == gsk_rounded_rect_intersects_rect (&test[i].rounded, &test[i].rect)); } }